import java.util.*

class Player(val player: String){
    fun playChess(): String {
        val scanner = Scanner(System.`in`)
        print("请输入位置，用空格分割：")
        currentRow = scanner.nextInt() -1
        currentColumn = scanner.nextInt() -1
        if ((currentRow > SIZE) || (currentRow < 0) && (currentColumn > SIZE) || (currentColumn < 0)){
            println("输入错误，请重新输入")
            return "错误信息"
        }else{
            println("${player}方落子：(${currentRow+1},${currentColumn+1})")
            return player
        }
    }
}